# Maintainer:
# Contributor: Ronald van Haren <ronald.archlinux.org>
# Contributor: eric <eric@archlinux.org>
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
 
pkgname=psutils
pkgver=2.10
pkgrel=1
arch=('any')
pkgdesc="A set of postscript utilities"
url="https://github.com/rrthomas/psutils"
license=('GPL3')
depends=('glibc' 'ghostscript' 'perl' 'perl-ipc-run3' 'libpaper')
options=('!makeflags')
source=("https://github.com/rrthomas/psutils/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.gz")
sha256sums=('6f8339fd5322df5c782bfb355d9f89e513353220fca0700a5a28775404d7e98b')

build() {
  cd ${pkgname}-${pkgver}
  
  export CFLAGS="$CFLAGS -DPAPER=\\\"letter\\\" -DUNIX -Wall" \
  export CCFLAGS="$LDFLAGS"

  ./configure --prefix=/usr
  make
}

package() {
  cd ${pkgname}-${pkgver}
  make DESTDIR="${pkgdir}" install
}
